<div id="frame_right">
  <? foreach ($this->d as $v) :?>
  <table class="table1" style="width: 180px; float: left; margin: 10px;">
	<caption>
    <?=$v[0]['kename'] ?>
    </caption>
	<thead>
		<tr>
			<th>id</th>
			<th>栏目名称</th>
			<th>新闻数目</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<th colspan="3"><a
				href="<?=$this->url(array('action'=>'msg','kid'=>$v[0]['kid'])) ?>">添加</a>
			</th>
		</tr>
	</tfoot>
	<tbody>
      <? foreach ($v as $vv) :?>
      <tr>
			<td style="width: 20px"><?=$vv["id"] ?></td>
			<td><a
				href="<?=$this->url(array('action'=>'msg','id'=>$vv['id'],'sname'=>$vv['name'],'kid'=>$v[0]['kid'])) ?>">
          <?=$vv["name"] ?>
          </a></td>
			<td><?=$vv["c"]-1 ?></td>
		</tr>
      <? endforeach; ?>
    </tbody>
</table>
  <? endforeach; ?>
</div>
